import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      name: 'test',
      component: resolve => {
        require(['@/views/test/test.vue'], resolve);
      }
    },
    {
      path: '/test2',
      name: 'test1',
      component: resolve => {
        require(['@/views/test2/test2.vue'], resolve);
      }
    }
  ]
})
